package javaSE黑马.javaday7.src;

import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86156
 * Date: 2023-04-07
 * Time: 15:35
 */
/*public class CarTest {
    public static void main(String[] args, Car car) {
        Car [] arr = new Car[3];
        Scanner scanner = new Scanner(System.in);

        // shift + f6 一键更改变量
        for (int i = 0; i < arr.length; i++) {
            Car c = new Car();
            System.out.println("请输入汽车品牌");
            c.setBrand(scanner.next());
            System.out.println("请输入汽车颜色");
            c.setColor(scanner.next());
            System.out.println("请输入汽车价格");
            c.setPrice(scanner.nextDouble());
            arr[i] = c;
        }
    }
}*/
